package com.huayun.plugin.fastenerWeightLibrary.domain;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "fastenerWeightLibrary")
public class FastenerWeightLibrary {
    @Id
    private String _id;
    private String partNumber;
    private Double weight;

    public String getId() {
        return _id;
    }

    public void setId(String id) {
        this._id = id;
    }

    public String getPartNumber() {
        return partNumber;
    }
    public void setPartNumber(String number) {
        this.partNumber = number;
    }

    public Double getWeight() {
        return weight;
    }
    public void setWeight(Double weight) {
        this.weight = weight;
    }

    //用来方便打印和查看数据
    @Override
    public String toString() {
        return "FastenerWeightLibrary{" +
                "_id='" + _id + '\'' +
                ", partNumber='" + partNumber + '\'' +
                ", weight='" + weight +
                '}';
    }
}
